package bk;

//FileToUppercaseFile.java
//reads from a file line by line and echoes 
//the contents to another file in uppercase

import java.io.*;
public class FileToUppercaseFile  {
 public static void main(String[] args)
    throws IOException  {
	 BufferedReader in = new BufferedReader 
		      	(new FileReader ("source.txt"));
		PrintWriter out = new PrintWriter (new 		BufferedWriter(new FileWriter 	("dest.txt")));
			
			String inputLine;
			
			inputLine = in.readLine();
			while (inputLine != null)  {  
				out.println(inputLine.toUpperCase());
		      	inputLine = in.readLine();
		   	}
		   	out.close();  
		   	in.close();
		   }  
		} 